<%@ page import="com.Web.Person.Teacher" %><%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2024/8/6
  Time: 15:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>updateTeacher</title>
</head>
<body>
    <%
        Teacher teacher = (Teacher) request.getAttribute("teacher");
    %>
    <form action="/teacher?method=update" method="post">
        <table>
            <input type="hidden" name="id" value="<%=teacher.getId()%>">
            <tr>
                <td>教师姓名：</td>
                <td><input type="text" name="name" value="<%=teacher.getName()%>"></td>
            </tr>
            <tr>
                <td>教师年龄：</td>
                <td><input type="text" name="age" value="<%=teacher.getAge()%>"></td>
            </tr>
            <tr>
                <td>教师住址：</td>
                <td><input type="text" name="address" value="<%=teacher.getAddress()%>"></td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="修改"/>
                </td>
                <td>
                    <input type="reset" value="重置"/>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
